package com.lyr.bank2;

public class Test_synchronized {
    public static void main(String[] args) {
        Bank bk=new Bank();
        Client c1=new Client("张三",38,bk);
        Client c2=new Client("李四",16,bk);
        Client c3=new Client("王五",27,bk);
        Client2 c4=new Client2("李四",bk);
        Client2 c5=new Client2("王五",bk);

        c1.start();
        c2.start();
        c3.start();

        c4.start();
        c5.start();
    }
}
